<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class autocomplete extends CI_Controller {

	public function __construct(){
		parent::__construct();
	}
		
	public function index($lang)
	{ 
		$term = $this->input->get('term', TRUE);
		$this->load->model('m_search');
		$listComplente = $this->m_search->getComplete($term,$lang);
		echo json_encode($listComplente);
	} 
}
?>